package git.soulbgm.service;

import git.soulbgm.common.handle.TcpServerHandle;
import git.soulbgm.common.socket.TcpServer;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author 贺瑞杰
 * @version V1.0
 * @date 2019-04-01 19:05
 * @description
 */
@Service
public class StartTcpServer {

    @PostConstruct
    public void start() {
        TcpServer tcpServer = TcpServer.getTcpService(8283);
        tcpServer.start(new TcpServerHandle(tcpServer));
    }

}
